package cn.huoyingkeji.auth.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;

import cn.huoyingkeji.auth.domain.AuthUser;
import cn.huoyingkeji.auth.service.AuthService;

@ConditionalOnMissingBean
public class AuthConditionalOnMissing implements AuthService{

    @Override
    public List<String> getPermissions(Long userId) {
        List<String> list = new ArrayList<>();
        list.add("admin");
        return list;
    }

    @Override
    public Long getUserId(String account, String certificate) {
       return 0L;
    }

    @Override
    public AuthUser getUser(String token) {
        return new AuthUser();
    }

}
